#!/bin/bash

docker_data_dir=/data/ubuntu_test_data
alb_install_dir=${docker_data_dir}/alb_install_dir

docker stop ubuntu-test
docker rm ubuntu-test

rm $docker_data_dir/* -rf
tar -xzf /data/alb_x86_install_package.tar.gz -C $docker_data_dir

docker run -d -it -v $docker_data_dir:/data -p 7000:9000 -p 7080:9080  --name ubuntu-test ubuntu:18.04

docker exec -it ubuntu-test /bin/bash -c "cd /data/alb_x86_install_package && ./run.sh"
